<?php

class regiaoController extends CController{
    
    public $model_name     = "tenap/regiao";
    public $index_view     = "";
    public $model_title    = "";
    //public $category_model = "tenap/segmento";
    public function __construct($vars) {
        parent::__construct($vars);
    }
    
    public function index(){
        $this->genTags("Belo Horizonte e região metropolitana", "bh, região metropolitana");
        $this->registerVar("item", $this->model->regioesComObras());
        //$this->registerVar("item", $this->model->selecionar());
    	$this->display("tenap/regiao/index");
    }

    public function show(){
        $this->setMainVars("bairrosunicos");
        $this->tags($this->item);
        $this->category($this->item);
        $this->registerVar("item", $this->item);
        $this->registerVar("comp_action" , 'show');
        //echo $this->model->db->getSentenca();
    	$this->display("admin/auto/areacliente/page");
    }
}

?>
